package com.jnc.core.base.service;

import com.jnc.core.base.model.Menu;
import com.jnc.core.base.model.User;

import java.util.List;
import java.util.Map;

/**
 * @Author: jjn
 * @Date: 2018/9/20
 * @Desc:
 */
public interface MenuService {
    public List<Menu> queryMenu(Menu menu);
    public List<Menu> checkMenu(Menu record);
    public Menu getMenu(Integer menuId);
    public int deleteMenu(Integer menuId);
    public int addMenu(Menu record);
    public int editMenu(Menu record);
    public List<Menu> queryMenusByUser(User user);
    public List<Menu> queryAllMenu();
    public List<Menu> queryAllNormalMenu();
    public Integer getChildrenMenuCount(Integer parentId);
    public List<String> queryPermsByUser(Integer userId);
    public List<Map<String, Object>> menuTreeData();
    public List<Map<String, Object>> roleMenuTreeData(Integer roleId);
}
